package com.yiba.vpn.utils;

/**
 * Created by jinchao on 2017/6/11.
 */

public class Constants {
    public static final String SharedPreferenceName = "app_file";
    //rxBus tag
    public static final String RXBUS_LOGIN_OUT = "login_out";
    public static final String RXBUS_START_VPN = "start_vpn";
    public static final String RXBUG_LOG = "log";

    public static final String RXBUS_WX_PAY_SUCCESS = "wx_pay_success";
    public static final String RXBUS_WX_PAY_FAILED = "wx_pay_fail";

    //rxBus value
    public static final String RXBUS_VPN_NODE_LOADED = "vpn_node_loaded";
    public static final String RXBUS_START_VPN_NO_AUTHORIZATION = "start_vpn_no_authorization";
    public static final String RXBUS_LOAD_VPN_ERROR = "load_vpn_node_error";
    public static final String RXBUS_OTHER_DEVICE_LOGIN = "other_device_login";
    public static final String RXBUS_NO_SERVICE = "no_service"; //对应code码：-1004 (没有服务)
    public static final String RXBUS_SERVICE_OUT_DATE = "service_out_date"; //对应code码：-1005 (服务过期)
    public static final String RXBUS_GET_VPN_TIME_OUT = "get_vpn_time_out"; //超时
    public static final String RXBUS_REFRESH_TOKEN_FAIL = "refresh_token_fail"; //刷新token返回4014
    public static final String RXBUS_SERVER_DISABLED = "rxbus_server_disabled";//网络不通 运营商阻断网络socket
    public static final String RXBUS_CREATE_NODE_EXCEPTION = "create_node_exception"; //创建节点失败
    public static final String RXBUS_SUBSCRIBE_SUCCESS_BANNER = "subscribe_success_banner"; //订阅成功banner处理
    public static final String RXBUS_SUBSCRIBE_SUCCESS_DIALOG = "subscribe_success_dialog"; //订阅成功dialog处理
    public static final String OPEN_VPN = "open_vpn"; //打开vpn
    public static final String RXBUS_LOGOUT = "logout";
    public static final String RXBUS_EXV_LOGIN = "exv_login";
//    public static final String RXBUS_ACCESS_HANGQING = "access_hangqing";

    public static final String RXBUS_GO_WFEE = "go_wfee";


    public static final String RXBUS_BIND_EAMIL = "rxbus_bind_eamil"; //绑定邮箱成功后刷新UI




    //sp
    public static final String IS_FIRST_CONNECTED = "is_frist_connect";

    public static final String CLICKED_COUPONS = "CLICKED_COUPONS";

    public static final String REWARD_AD_SHOW_TIMES = "REWARD_AD_SHOW_TIMES";

    public static final String REWARD_GIVEN = "reward_given";

    public static final String IS_VISTOR = "is_vistor";

    public static final String WILL_SHOW_RATING = "will_show_rating";

    public static final String SP_POP_RATE_TIMES = "pop_rate_times";


    //-------------- Sina Weibo (start) ---------------
    public static final String WB_APP_KEY = "3980692944";
    /**
     * 当前 DEMO 应用的回调页，第三方应用可以使用自己的回调页。
     * <p>
     * <p>
     * 注：关于授权回调页对移动客户端应用来说对用户是不可见的，所以定义为何种形式都将不影响，
     * 但是没有定义将无法使用 SDK 认证登录。
     * 建议使用默认回调页：https://api.weibo.com/oauth2/default.html
     * </p>
     */
    public static final String WB_REDIRECT_URL = "http://www.d8zone.net";
    /**
     * Scope 是 OAuth2.0 授权机制中 authorize 接口的一个参数。通过 Scope，平台将开放更多的微博
     * 核心功能给开发者，同时也加强用户隐私保护，提升了用户体验，用户在新 OAuth2.0 授权页中有权利
     * 选择赋予应用的功能。
     * <p>
     * 我们通过新浪微博开放平台-->管理中心-->我的应用-->接口管理处，能看到我们目前已有哪些接口的
     * 使用权限，高级权限需要进行申请。
     * <p>
     * 目前 Scope 支持传入多个 Scope 权限，用逗号分隔。
     * <p>
     * 有关哪些 OpenAPI 需要权限申请，请查看：http://open.weibo.com/wiki/%E5%BE%AE%E5%8D%9AAPI
     * 关于 Scope 概念及注意事项，请查看：http://open.weibo.com/wiki/Scope
     */
//    public static final String WB_SCOPE = "email" +
//            ",direct_messages_read" +
//            ",direct_messages_write" +
//            ",friendships_groups_read" +
//            ",friendships_groups_write" +
//            ",statuses_to_me_read," +
//            "follow_app_official_microblog" +
//            ",invitation_write";
    public static final String WB_SCOPE = "all";
    //-------------- Sina Weibo (end) ---------------


    public static final String URL_RATING_COMMENTS = "http://ad.18wifibank.com/newsdk/sdk/addAdvise";

    //这个token是用于通过stripe生成alipay支付需要的参数，和后台需要第二次确认扣款的操作。
    public static final String STRIPE_ID = "pk_live_GMH3y7EQIG86aD6Ac1K3YpIK";
    public static final String GOOGLE_ID = "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA1ZjKm0+pxQHhlDaM5l97U2K5Oso3Y5mSjs2AFmJJJu9ijdqAkF2FKov7O8opXmXKgdDvOXGjENTyN9fNrdU5fcqeykRClbGj4CJBvQEeO3Z+BT+F7JxtmWyWtG+douEE8yyRHUQmCce9gJ619TxU7aLPm9N+th/wo3qDRoIy/is0gy1PkpIJd7Rm+UtNxnrwQ1C91rP61Eg5nCen0FJZZ8VBCkY9WOQUf6sTRQ0THcP8RgurDPD0ZfoqnwhtNiKkAufaqSmZsR3GZMSI/qpiVLNDnbk1z5mJC5GqMwmBi3EerM5PBlmViSbnf4a27m/nQ8hGatYNbxSStiQhRL+5QwIDAQAB";


}
